package com.cskaoyan.demo4.mapper;

import com.cskaoyan.demo4.bean.Account;
import org.apache.ibatis.annotations.Param;

public interface AccountMapper {
    // 增加Account操作,已设置主键id自增,故只需设置用户名、密码和money的值
    int insertAccount(@Param("username") String username, @Param("password") String password, @Param("money") int money);


    int updateByName(@Param("account") Account account);

    Account queryAccountById(Integer id);
    int deleteAccountById(Integer id);


}
